home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Applications / Eudora 1.3.1 / source / globals.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-03-16  |  5.5 KB  |  125 lines  |  [TEXT/MPS ]

  1. /* Copyright (c) 1990-1992 by the University of Illinois Board of Trustees */
  2. #pragma load EUDORA_LOAD
  3. #pragma segment Main
  4. /**********************************************************************
  5.  * Global variables for POP mail
  6.  **********************************************************************/
  7. int FontID;                         /* font parameters */
  8. int FontSize;
  9. int FontWidth;                    /* width of average char in font */
  10. int FontLead;
  11. int FontDescent;
  12. int FontAscent;
  13. Boolean AlertsTimeout;    /* do alerts timeout? */
  14. Boolean CommandPeriod;    /* has cmd-. been pressed lately? */
  15. Boolean Done;                     /* set to True when we're done processing */
  16. Boolean DontTranslate;    /* don't use translation tables */
  17. Boolean FontIsFixed;        /* is font fixed-width? */
  18. short InBG;                         /* whether or not we're in the background */
  19. Boolean NoSaves;                /* don't prompt user to save documents */
  20. Boolean SFWTC;                    /* Somebody Fooled With The Cursor */
  21. Boolean ScrapFull;            /* is there stuff on the scrap? */
  22. Boolean UseCTB;                 /* are we using the CTB? */
  23. Boolean ExcludeHeaders; /* exclude headers from Save As? */
  24. Boolean Paragraphs;         /* Reparagraph on Save As? */
  25. Boolean AmQuitting;         /* are we quitting? */
  26. Boolean BadBinHex;            /* a bad binhex file was found */
  27. Boolean WrapWrong;            /* wrap the wrong way */
  28. Boolean HasHelp;                /* do we have balloon help? */
  29. Boolean UUPCIn;                 /* UUPC mail input */
  30. Boolean UUPCOut;                /* UUPC mail output */
  31. Boolean HasPM;                    /* Do we have the process manager? */
  32. Boolean NoAttachments;    /* don't recognize attachments file */
  33. Boolean NewTables;            /* using new translation table scheme */
  34. BoxCountHandle BoxCount;/* list of mailboxes for find */
  35. GrafPtr InsurancePort;    /* a port for use when no others are available */
  36. UHandle  RcvBuffer;         /* stuff for line-oriented net input */
  37. ICMPReport ICMPMessage; /* the last such report */
  38. MessType **MessList;        /* list of open messages */
  39. MyWindow *HandyWindow;    /* spare window record */
  40. RgnHandle MouseRgn;         /* a pen for the mouse */
  41. Byte NewLine[4];                /* current newline string */
  42. #ifndef KERBEROS
  43. Str31 Password;                 /* our current password */
  44. #endif
  45. Str31 SecondPass;                /* secondary password */
  46. THPrint PageSetup;            /* our Page Setup */
  47. TOCType **TOCList;            /* list of open TOC's */
  48. UHandle Aliases;                /* our aliases */
  49. UHandle Notes;                    /* notes on our aliases */
  50. UPtr TransIn;                     /* Translation table for incoming characters */
  51. UPtr TransOut;                    /* Translation table for outgoing characters */
  52. UndoType Undo;                    /* stuff for Undo */
  53. int CTBTimeout;                 /* current timeout for use with CTB */
  54. HostInfoQHandle HIQ;        /* queue of pending DNS lookups */
  55. int RcvSize;
  56. int RcvSpot;
  57. int SendQueue;                    /* # of messages waiting to be sent */
  58. uLong ForceSend;                /* next delayed queue */
  59. long **BoxMap;                    /* map of menu id's to dirId's */
  60. long AlertTicks;                /* ticks at which to cancel alert */
  61. long MyDirId;                     /* dirid of our directory */
  62. short **BoxLines;             /* where the lines go in a mailbox window */
  63. short AliasRefCount;        /* how many subsystems are using aliases? */
  64. short ICMPAvail;                /* there is an ICMP report available */
  65. short MyVRef;                     /* VRefNum of our directory */
  66. short RunType;                    /* Production, Debugging, or Steve */
  67. short SettingsRefN;         /* refNum of settings file */
  68. struct NMRec *MyNMRec;    /* notification record */
  69. uLong CheckTicks;             /* ticks of last mail check */
  70. UHandle  AttachedFiles; /* list of attachments saved */
  71. MenuHandle CheckedMenu; /* currently checked mailbox menu */
  72. short CheckedItem;            /* currently checked mailbox item */
  73. Handle SpareSpace;            /* extra memory for emergencies */
  74. Boolean EjectBuckaroo;    /* out of memory; die at next opportunity */
  75. unsigned short WhyTCPTerminated;                /* why the ctp connection died */
  76. short CTBHasChars;
  77. ConnHandle CnH;
  78. short LogRefN;                    /* ref number of open log file */
  79. short LogLevel;                    /* current logging level */
  80. long LogTicks;                    /* time log was opened */
  81. TOCHandle DamagedTOC;
  82. short FakeTabs;        /* cache this pref for performance reasons */
  83. struct AddressRange CodeAddress[NUM_CODE];
  84. Handle WrapHandle;
  85. short ClickType;    /* single, double, or triple */
  86. Boolean POPSecure;
  87. short DropRefN;                /* maildrop reference number */
  88. short SysRefN;                /* system file reference number */
  89. #ifndef SLOW_CLOSE
  90. FastPBPtr FastList;    /* connections to be closed */
  91. #endif
  92. #ifdef PERF
  93. TP2PerfGlobals ThePGlobals;
  94. #endif
  95. #ifdef DEBUG
  96. short BugFlags;
  97. #define BUG0 ((BugFlags&(1<<0))!=0)
  98. #define BUG1 ((BugFlags&(1<<1))!=0)
  99. #define BUG2 ((BugFlags&(1<<2))!=0)
  100. #define BUG3 ((BugFlags&(1<<3))!=0)
  101. #define BUG4 ((BugFlags&(1<<4))!=0)
  102. #define BUG5 ((BugFlags&(1<<5))!=0)
  103. #define BUG6 ((BugFlags&(1<<6))!=0)
  104. #define BUG7 ((BugFlags&(1<<7))!=0)
  105. #define BUG8 ((BugFlags&(1<<8))!=0)
  106. #define BUG9 ((BugFlags&(1<<9))!=0)
  107. #define BUG10 ((BugFlags&(1<<10))!=0)
  108. #define BUG11 ((BugFlags&(1<<11))!=0)
  109. #define BUG12 ((BugFlags&(1<<12))!=0)
  110. #define BUG13 ((BugFlags&(1<<13))!=0)
  111. #define BUG14 ((BugFlags&(1<<14))!=0)
  112. #define BUG15 ((BugFlags&(1<<15))!=0)
  113. long SpinSpot;
  114. #endif
  115. TransVector CurTrans;
  116. TransVector CTBTrans = {CTBConnectTrans,CTBSendTrans,CTBRecvTrans,CTBDisTrans,CTBDestroyTrans,CTBTransError,CTBSilenceTrans,GenSendWDS,CTBWhoAmI,NetRecvLine};
  117. TransVector TCPTrans = {TCPConnectTrans,TCPSendTrans,TCPRecvTrans,TCPDisTrans,TCPDestroyTrans,TCPTransError,TCPSilenceTrans,TCPSendWDS,TCPWhoAmI,NetRecvLine};
  118. TransVector UUPCTrans = {nil,UUPCSendTrans,nil,UUPCDry,UUPCDry,nil,nil,GenSendWDS,nil,UUPCRecvLine};
  119.  
  120. /**********************************************************************
  121.  * a few temp vars for macros
  122.  **********************************************************************/
  123. uLong M_T1, M_T2, M_T3;
  124.  
  125.